package dk.fuddi.conversion;

import org.apache.commons.lang.StringEscapeUtils;

/**
 * User: jen
 * Date: May 17, 2007
 * Time: 3:56:45 PM
 */
public class XmlUtils implements DeEncodeInterface {

	private String name = "XML";


	public String encode(String xml) {
		System.out.println("XmlUtils.encode");
		return StringEscapeUtils.escapeXml(xml);
	}

	public String decode(String xml) {
		System.out.println("XmlUtils.decode");
		return StringEscapeUtils.unescapeXml(xml);
	}

	public String toString() {
		return name;
	}
}
